<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>主页</title>
  <link rel="stylesheet" href="../layuimini/lib/layui-v2.5.5/css/layui.css" media="all" />
</head>

<body>
  <div class="layui-container">
    <div class="layui-row">
      <div class="layui-col-md4"></div>
      <div class="layui-col-md4">
        <h1 id="welcom_user"></h1>
      </div>
    </div>
  </div>

  <script src="../layuimini/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>

  <script src="../layuimini/js/lay-config.js"></script>
  <script>
    layui.use(['axios', 'common', 'jquery', 'echarts_latest'], function () {
      var common = layui.common
      var $ = layui.jquery
      echarts = layui.echarts_latest
      common.axios('/user/get', 'get', null, function (res) {
        console.log(res)
        let username = res.data.data
        let welcom_user = $('#welcom_user')
        welcom_user.html('欢迎您！尊敬的人力资源总监')
      })
    })
  </script>
</body>

</html>